Skip to content

Date cannot be future#473

Merged
pyth0n1c merged 4 commits intomainfrom
date_cannot_be_future
Feb 25, 2026
Merged

Date cannot be future#473
pyth0n1c merged 4 commits intomainfrom
date_cannot_be_future

Conversation

@pyth0n1c
Copy link
Contributor

@pyth0n1c pyth0n1c commented Feb 25, 2026

Generate an error during content validation if the date is set for the future.
Note that this is relative to UTC, so there are some minor edge cases where this generates an exception based on the locale of a developer. This is documented in the error message returned however.

Note this is what the new check shows on our repo today, in which a piece of content accidentally has a future date:
image

pyth0n1c and others added 4 commits February 25, 2026 08:16
the future. It must be today or 
earlier. Note that today/now
is relative to UTC.
Copy link
Contributor

@ljstella ljstella left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pyth0n1c
Copy link
Contributor Author

Note - current failures against production branch of security_content are to be expected until a fix is merged into that repo.
Intentionally merging this first.

@pyth0n1c pyth0n1c merged commit 019feea into main Feb 25, 2026
10 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants